//
//  BaseNavigatinController.m
//  Rongniu
//
//  Created by Apple on 16/2/22.
//  Copyright © 2016年 Fangwei. All rights reserved.
//

#import "BaseNavigatinController.h"
#import "Common.h"

@interface BaseNavigatinController (){

    NSDictionary *titleDic;

}

@end

@implementation BaseNavigatinController

- (void)initNavigationBar
{
    //  Subclass TODO
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initNavigationBar];
    //穿透效果
    self.navigationBar.translucent = NO;
    
    if (!_whiteColor) {
        
        [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"top"]forBarMetrics:UIBarMetricsDefault];
        titleDic = @{
                     NSFontAttributeName : [UIFont boldSystemFontOfSize:17],
                     NSForegroundColorAttributeName : [UIColor whiteColor]
                     };
       
    }
    
    
    [self.navigationBar setTitleTextAttributes:titleDic];
    
    // Do any additional setup after loading the view.
}

//状态栏的样式
- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

@end
